<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/plantillas/defaultTemplate.xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="titulo">Rol</ui:define>
    <ui:define name="content">
            <p:panel header="Rol">
                <h:panelGrid>
                    <h:outputText value="Compañia"/>
                    <p:dataList value="#{seguridad$rol.listaRoles}" var="rol" paginator="true" rows="5" effectSpeed="fast" paginatorTemplate="{PreviousPageLink} {CurrentPageReport} {NextPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="5,10,15">
                        <p:column>
                            <p:commandLink update="carDetail" oncomplete="carDialog.show()" title="View Detail">
                                <p:graphicImage value="/resources/iconos/edit-find.png"/>
                                <f:setPropertyActionListener value="#{car}" target="#{tableBean.selectedCar}" />  
                            </p:commandLink>                              
                            <h:outputText value="#{rol.nomRol}"/>
                        </p:column>
                    </p:dataList>

 <!--h:selectOneMenu value="#{seguridad$menu.compania}" >
     <f:selectItems value="#{seguridad$menu.listaCompanias}" var="compania" itemValue="#{compania.idCompania}" itemLabel="#{compania.nomCompania}" />
 </h:selectOneMenu-->

                    <h:outputText value="Modulo"/>
                    <h:selectOneMenu value="#{seguridad$menu.modulo}">
                        <f:selectItems value="#{seguridad$menu.listaModulos}" var="modulo" itemValue="#{modulo.moduloPK.idModulo}" itemLabel="#{modulo.nomModulo}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
            </p:panel>
    </ui:define>

</ui:composition>
